﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

#endregion

namespace WinnerCMS.BLL
{
    /// <summary>
    /// 用户日志分类
    /// </summary>
    public class LogTypeManage
    {
        public static string GetTypeName(Type target)
        {
            if (target.Name.Contains("ArticleManage"))
            {
                return "文章管理";
            }
            if (target.Name.Contains("SoftManage"))
            {
                return "软件管理";
            }
            if (target.Name.Contains("PhotoManage"))
            {
                return "图集管理";
            }
            if (target.Name.Contains("AnnounceManage"))
            {
                return "公告管理";
            }
            if (target.Name.Contains("UserManage"))
            {
                return "用户管理";
            }
            if (target.Name.Contains("AdsManage"))
            {
                return "广告管理";
            }
            if (target.Name.Contains("AdminManage"))
            {
                return "管理员管理";
            }
            if (target.Name.Contains("CategoryManage"))
            {
                return "栏目管理";
            }
            if (target.Name.Contains("GoodsManage"))
            {
                return "商品管理";
            }
            if (target.Name.Contains("CommentManage"))
            {
                return "评论管理";
            }
            throw new NotImplementedException("未实现");
        }
    }
}